let li1=document.getElementById("lun1li");
let img1=document.getElementById("lun1img");
let li2=document.getElementById("lun2li");
let img2=document.getElementById("lun2img");
let a=["医学院领导看望慰问我院第十六届省运会的青年志愿者","医学院认真组织全体师生观看党的二十大开幕式直播","医学院开展《习近平谈治国理政》第四卷专题学习活动"];
let img=["./images/C6993CFA9440D068FE62891BA46_AABC4B8D_C3F1.jpg","./images/6CF5A10DC8753235D3645F2EC79_57857287_802F.png","./images/9C047F926C24CADD95CC6078EB4_3D78C721_748F.png"];
let i=0;
let i2=0;
function lunbo(){
    li1.childNodes.item(2*i+1).className="black";
    img1.childNodes.item(2*i+1).className="zindex0";
    i=(i+1)%5;
    li1.childNodes.item(2*i+1).className="red";
    img1.childNodes.item(2*i+1).className="zindex1";
}
function lunbo1(x){
    li1.childNodes.item(2*i+1).className="black";
    img1.childNodes.item(2*i+1).className="zindex0";
    i=x%5;
    li1.childNodes.item(2*i+1).className="red";
    img1.childNodes.item(2*i+1).className="zindex1";
}
setInterval(lunbo,2000);
function lunbo2(){
    li2.childNodes.item(2*i2+1).className="hui";
    i2=(i2+1)%3;
    li2.childNodes.item(2*i2+1).className="huang";
    img2.firstChild.setAttribute("src",img[i2]);
    img2.lastChild.innerText=a[i2];
}
function lunbo3(x){
    li2.childNodes.item(2*i2+1).className="hui";
    i2=x%3;
    li2.childNodes.item(2*i2+1).className="huang";
    img2.firstChild.setAttribute("src",img[i2]);
    img2.lastChild.innerText=a[i2];
}
setInterval(lunbo2,2000);